// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

Vue.config.productionTip = false
// 因为我们现在不使用mock了，而是使用FastMock,所以需要注释掉
// import user from './js/user/user.js'

/* 全局引入axios*/
import axios from "axios"
// 设置axios的公共路径
axios.defaults.baseURL='https://www.fastmock.site/mock/7d50d073b9d3bd03f6e1859e29762dc8/pethome'
// 设置axios的全局属性配置,这样设施,$http中就有axios中的一切
Vue.prototype.$http = axios

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
